<?php
/**
 * Author: Administrator
 * Date: 2022/7/21 2:10
 */

namespace DesignPatterns\Structural\Decorator;


class JsonRenderer extends RenderDecorator
{

    public function renderData()
    {
        $data = $this->service->renderData();
        return json_encode($data, JSON_UNESCAPED_UNICODE);
    }
}